home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Periodicals / develop / develop 8 code / Curves in Quickdraw / QD Curves / access library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-09  |  1.5 KB  |  52 lines  |  [TEXT/KAHL]

  1. #ifndef accessLibraryIncludes
  2. #define accessLibraryIncludes
  3.  
  4. #ifndef sfntAccessIncludes
  5.     #include "access.h"
  6. #endif
  7.  
  8. #ifndef curveIncludes
  9.     #include "curves.h"
  10. #endif
  11.  
  12. void InitMatrix(Matrix);
  13.  
  14. /*    Return a handle to the sfnt in the given font family with the given style.
  15. */
  16. Handle GetNamedSfntHandle(Str255 fontName, short styleWord);
  17. Handle GetSfntHandle(short txFont, short styleWord);
  18.  
  19. /*    Allocate the initial arrays for the GlyphOutline.
  20. */
  21. FontError InitGlyphOutline(GlyphOutline* out);
  22.  
  23. /*    Dispose the memory allocated for the GlyphOutline.
  24. */
  25. FontError KillGlyphOutline(GlyphOutline* out);
  26.  
  27. /*    Lock/Unlock the arrays in the GlyphOutline.
  28. */
  29. void LockGlyphOutline(GlyphOutline*);
  30. void UnlockGlyphOutline(GlyphOutline*);
  31.  
  32. /*    These modify the outline, origin and advance.
  33. */
  34. void MoveGlyphOutline(GlyphOutline*, Fixed xDelta, Fixed yDelta);
  35. void MoveToGlyphOutline(GlyphOutline* out, Fixed xCoord, Fixed yCoord);
  36. void ScaleGlyphOutline(GlyphOutline* out, Fixed xScale, Fixed yScale);
  37. void MapGlyphOutline(GlyphOutline*, Matrix);
  38.  
  39. /*    Convert a glyph outline into a paths, allocated as a NewPtr.
  40. */
  41. paths* OutlineToPaths(GlyphOutline* out);
  42.  
  43. /*    Works like StdText, but frames the outlines using FrameGlyphOutline.
  44. */
  45. void FrameText( unsigned char* text, FixPoint* scale, int mark );
  46.  
  47. /*    Just like FrameText, but returns the paths. It also fills out finalPenPosition
  48.  *    with the pen location for the end of the text.
  49. */
  50. paths* Text2Paths( unsigned char* text, FixPoint* scale, FixPoint* finalPenPosition );
  51.  
  52. #endif